package com.test.designPattern.creationType.builderPattern;

/**
 * 指挥者
 *
 * @author wangjie
 * @version V1.0
 * @date 2020/4/4
 */
public class Director {

    private CarBuilder builder;

    public Director(CarBuilder builder){
        this.builder = builder;
    }

    public Car construct(){
        builder.buildTyre();
        builder.buildSteeringWheel();
        return builder.getCar();
    }
}
